﻿using System.Web.Mvc;

namespace Blog
{
    public class BlogAreaRegistration : AreaRegistration
    {
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                   "BlogPlugin",
                   "Blog/{controller}/{action}/{id}",
                   new { action = "Index", id = UrlParameter.Optional },
                   new[] { "Blog.Controllers" }
               );
        }

        public override string AreaName
        {
            get { return "Blog"; }
        }
    }
}